package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieSearch.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>backdrop_path</li>
 * 		<li>id</li>
 * 		<li>original_title</li>
 * 		<li>release_date</li>
 * 		<li>popularity</li>
 * 		<li>poster_path</li>
 * 		<li>title</li>
 * 	</ul>
 * </p>
 * @author Tanmoy 
 */
public class MovieSearch extends Movie implements Serializable {
	
	private static final long serialVersionUID = -2426329899327073848L;
	
	@SerializedName("original_title")
	private String originalTitle;
	
	@SerializedName("popularity")
	private double popularity;	
	
	@SerializedName("release_date")
	private String releaseDate;
	
	@SerializedName("title")
	private String title;
	
	/**
	 * Default Constructor.
	 */
	public MovieSearch() {
		
	}

	/**
	 * Gets the original title.
	 *
	 * @return 
	 * 		The original title
	 */
	public String getOriginalTitle() {
		return originalTitle;
	}

	/**
	 * Sets the original title.
	 *
	 * @param originalTitle 
	 * 		The new original title
	 */
	public void setOriginalTitle(String originalTitle) {
		this.originalTitle = originalTitle;
	}

	/**
	 * Gets the popularity.
	 *
	 * @return 
	 * 		The popularity
	 */
	public double getPopularity() {
		return popularity;
	}

	/**
	 * Sets the popularity.
	 *
	 * @param popularity 
	 * 		The new popularity
	 */
	public void setPopularity(double popularity) {
		this.popularity = popularity;
	}

	/**
	 * Gets the release date.
	 *
	 * @return 
	 * 		The release date
	 */
	public String getReleaseDate() {
		return releaseDate;
	}

	/**
	 * Sets the release date.
	 *
	 * @param releaseDate 
	 * 		The new release date
	 */
	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}

	/**
	 * Gets the title.
	 *
	 * @return 
	 * 		The title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Sets the title.
	 *
	 * @param title 
	 * 		The new title
	 */
	public void setTitle(String title) {
		this.title = title;
	}	
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Movie#toString()
	 */
	@Override
	public String toString() {		
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("backdrop_path:").append("\"").append(backdropPath).append("\"").
			append(",").		
			append("id:").append(id).
			append(",").		
			append("original_title:").append("\"").append(originalTitle).append("\"").
			append(",").		
			append("popularity:").append(popularity).
			append(",").
			append("poster_path:").append("\"").append(posterPath).append("\"").
			append(",").		
			append("release_date:").append("\"").append(releaseDate).append("\"").
			append(",").		
			append("title:").append("\"").append(title).append("\"").		
			append("}");
		return builder.toString();		
	}
}
